﻿@model IEnumerable<GSLMS.Entity.Role>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "角色管理";
    //var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.DTO.UniversallySearchParam;
}
<form id="pagerForm" method="get" action="System/Role/index?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="System/Role/index?action=search&OpID=@ViewData["OperateID"]"
    method="post">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    角色名：
                </td>
                <td>
                    @Html.TextBox("Name", ViewData["RoleName"])
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="list" width="100%" layouth="170">
        <thead>
            <tr class="header">
                <th style="width: 150px">
                    序号
                </th>
                <th>
                    角色名称
                </th>
                <th>
                    创建人
                </th>
                <th>
                    时间
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="Role_id" rel="@item.ID" >
                <td>
                    @i
                </td>
                <td>
                    @item.Name
                </td>
                <td>
                    @item.Creator
                </td>
                <td>
                    <span formatdate="yyyy-MM-dd HH:mm">
                        @item.CreateTime</span>
                </td>
            </tr>
            i += 1;
        }
    </table>
</div>
@Html.Partial("PageBar")

